import React, { Component } from 'react'
import Child from './Child'

export default class App extends Component {
  state = {
    salary: 11.46,
  }
  render() {
    const { salary } = this.state
    return (
      <div>
        App: {salary}
        <hr />
        {/* #1 父亲通过自定义属性传递 */}
        <Child salary={salary} />
      </div>
    )
  }
}
